package com.ruoyi.huoyun.auth.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.huoyun.auth.mapper.UserDriverAuthMapper;
import com.ruoyi.huoyun.auth.domain.UserDriverAuth;
import com.ruoyi.huoyun.auth.service.IUserDriverAuthService;

/**
 * 车主的认证信息Service业务层处理
 *
 * @author mj
 * @date 2021-11-29
 */
@Service
public class UserDriverAuthServiceImpl implements IUserDriverAuthService
{
    @Autowired
    private UserDriverAuthMapper userDriverAuthMapper;

    /**
     * 查询车主的认证信息
     *
     * @param id 车主的认证信息主键
     * @return 车主的认证信息
     */
    @Override
    public UserDriverAuth selectUserDriverAuthById(Integer id)
    {
        return userDriverAuthMapper.selectUserDriverAuthById(id);
    }

    /**
     * 查询车主的认证信息列表
     *
     * @param userDriverAuth 车主的认证信息
     * @return 车主的认证信息
     */
    @Override
    public List<UserDriverAuth> selectUserDriverAuthList(UserDriverAuth userDriverAuth)
    {
        return userDriverAuthMapper.selectUserDriverAuthList(userDriverAuth);
    }

    /**
     * 新增车主的认证信息
     *
     * @param userDriverAuth 车主的认证信息
     * @return 结果
     */
    @Override
    public int insertUserDriverAuth(UserDriverAuth userDriverAuth)
    {
        return userDriverAuthMapper.insertUserDriverAuth(userDriverAuth);
    }

    /**
     * 修改车主的认证信息
     *
     * @param userDriverAuth 车主的认证信息
     * @return 结果
     */
    @Override
    public int updateUserDriverAuth(UserDriverAuth userDriverAuth)
    {
        return userDriverAuthMapper.updateUserDriverAuth(userDriverAuth);
    }

    /**
     * 批量删除车主的认证信息
     *
     * @param ids 需要删除的车主的认证信息主键
     * @return 结果
     */
    @Override
    public int deleteUserDriverAuthByIds(Integer[] ids)
    {
        return userDriverAuthMapper.deleteUserDriverAuthByIds(ids);
    }

    /**
     * 删除车主的认证信息信息
     *
     * @param id 车主的认证信息主键
     * @return 结果
     */
    @Override
    public int deleteUserDriverAuthById(Integer id)
    {
        return userDriverAuthMapper.deleteUserDriverAuthById(id);
    }
}
